package com.jiawa.train.business.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 每日车厢
 * </p>
 *
 * @author hrz
 * @since 2025-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("daily_train_carriage")
@ApiModel(value="DailyTrainCarriage对象", description="每日车厢")
public class DailyTrainCarriage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "日期")
    @TableField("`date`")
    private Date date;

    @ApiModelProperty(value = "车次编号")
    private String trainCode;

    @ApiModelProperty(value = "箱序")
    @TableField("`index`")
    private Integer index;

    @ApiModelProperty(value = "座位类型|枚举[SeatTypeEnum]")
    private String seatType;

    @ApiModelProperty(value = "座位数")
    private Integer seatCount;

    @ApiModelProperty(value = "排数")
    private Integer rowCount;

    @ApiModelProperty(value = "列数")
    private Integer colCount;

    @ApiModelProperty(value = "新增时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
